<?php

namespace App\Http\Controllers\UI;

use App\Http\Controllers\Controller;
use App\Miya\Middlewares\AlertMessage;

class CommonController extends Controller
{
    public function __construct()
    {
        if (config('setting.page_cache')) {
            $this->middleware('page-cache');
        }
        $this->middleware(AlertMessage::class);
    }
}
